package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class AnonymousBean  implements Serializable,IJsonParser{
	/**
	 * 
	 */
	private static final long serialVersionUID = -8167964123988823113L;
	private String anonymous_id;
	private String anonymous_token;
	private String created_time;
	private String display_name;
	private String desc ;
	private String error ;
	public AnonymousBean(){}
	
	public AnonymousBean(String anonymous_id, String anonymous_token,
			String created_time, String display_name, String desc, String error) {
		super();
		this.anonymous_id = anonymous_id;
		this.anonymous_token = anonymous_token;
		this.created_time = created_time;
		this.display_name = display_name;
		this.desc = desc;
		this.error = error;
	}

	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getError() {
		return error;
	}
	public void setError(String error) {
		this.error = error;
	}
	public String getAnonymous_id() {
		return anonymous_id;
	}
	public void setAnonymous_id(String anonymous_id) {
		this.anonymous_id = anonymous_id;
	}
	public String getAnonymous_token() {
		return anonymous_token;
	}
	public void setAnonymous_token(String anonymous_token) {
		this.anonymous_token = anonymous_token;
	}
	public String getCreated_time() {
		return created_time;
	}
	public void setCreated_time(String created_time) {
		this.created_time = created_time;
	}
	public String getDisplay_name() {
		return display_name;
	}
	public void setDisplay_name(String display_name) {
		this.display_name = display_name;
	}
@Override
public IJsonParser parse(String json) throws Exception {
	// TODO Auto-generated method stub
	Gson   gson = null;
	if(null != json){
		GsonBuilder b = new GsonBuilder();
		gson  = b.create();
		return gson.fromJson(json, AnonymousBean.class);
	}
	return null;
}
}
